const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  //  把 user 中的 token 放出来 更好的使用
  token: state => state.user.token,
  routes: state => state.permission.routes, // 建立权限快捷访问
  userId: state => state.user.userInfo.userId, // 建立用户Id的映射
  name: state => state.user.userInfo.username, // 建立用户名称的映射
  staffPhoto: state => state.user.userInfo.staffPhoto, // 建立用户图片的快捷访问
  departmentId: state => state.user.userInfo.departmentId, // 建立用户id 的快捷访问
  companyName: state => state.user.userInfo.companyName, // 建立用户公司的快捷访问
  departmentName: state => state.user.userInfo.departmentName // 建立用户部门的快捷访问
}
export default getters
